/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wiai.untl.core.entity;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

/**
 *
 * @author Hendro Steven
 */
@Entity
public class Ruang implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private String kodeRuang;
    private int kapasitas;
    private String keterangan;
    @OneToMany
    private List<FasilitasRuang> fasilitas;
    @ManyToOne
    private Gedung gedung;
    @ManyToOne
    private StatusRuang statusRuang;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    

    @Override
    public String toString() {
        return this.getKodeRuang();
    }

    /**
     * @return the kodeRuang
     */
    public String getKodeRuang() {
        return kodeRuang;
    }

    /**
     * @param kodeRuang the kodeRuang to set
     */
    public void setKodeRuang(String kodeRuang) {
        this.kodeRuang = kodeRuang;
    }

    /**
     * @return the kapasitas
     */
    public int getKapasitas() {
        return kapasitas;
    }

    /**
     * @param kapasitas the kapasitas to set
     */
    public void setKapasitas(int kapasitas) {
        this.kapasitas = kapasitas;
    }

    /**
     * @return the keterangan
     */
    public String getKeterangan() {
        return keterangan;
    }

    /**
     * @param keterangan the keterangan to set
     */
    public void setKeterangan(String keterangan) {
        this.keterangan = keterangan;
    }

    /**
     * @return the fasilitas
     */
    public List<FasilitasRuang> getFasilitas() {
        return fasilitas;
    }

    /**
     * @param fasilitas the fasilitas to set
     */
    public void setFasilitas(List<FasilitasRuang> fasilitas) {
        this.fasilitas = fasilitas;
    }

    /**
     * @return the gedung
     */
    public Gedung getGedung() {
        return gedung;
    }

    /**
     * @param gedung the gedung to set
     */
    public void setGedung(Gedung gedung) {
        this.gedung = gedung;
    }

    /**
     * @return the statusRuang
     */
    public StatusRuang getStatusRuang() {
        return statusRuang;
    }

    /**
     * @param statusRuang the statusRuang to set
     */
    public void setStatusRuang(StatusRuang statusRuang) {
        this.statusRuang = statusRuang;
    }
    
}
